package mio.model;

public class CreditPoint {
	private int id;
	private String longName;
	private String description;
	private double decimalLatitude;
	private double decimalLongitude;

	public CreditPoint(int id, String longName, String description) {
		this.id = id;
		this.longName = longName;
		this.description = description;
		this.decimalLatitude = 0;
		this.decimalLongitude = 0;
	}

	public CreditPoint(int id, String longName, String description,
			double decimalLatitude, double decimalLongitude) {
		this.id = id;
		this.longName = longName;
		this.description = description;
		this.decimalLatitude = decimalLatitude;
		this.decimalLongitude = decimalLongitude;
	}

	public String toString() {
		return longName;
	}

	public boolean equals(Object obj) {
		if (!(obj instanceof CreditPoint))
			return false;
		CreditPoint other = (CreditPoint) obj;
		return id == other.getId();
	}

	public int getId() {
		return id;
	}

	public String getLongName() {
		return longName;
	}

	public String getDescription() {
		return description;
	}

	public double getDecimalLatitude() {
		return decimalLatitude;
	}

	public double getDecimalLongitude() {
		return decimalLongitude;
	}
}
